<html>
  <head>
    <title>授权页面</title>
  </head>
  <body>
    <div>授权页面</div>
    <button onclick="auth()">点击授权</button>
    <script src="./sdk.dev.js"></script>
    <script>
      window.BaaS.init('a4d2d62965ddb57fa4d6', {
        logLevel: 'debug',
      })
      // BaaS._config.DEBUG = true
      // BaaS.init('995140f59511a222c937', {logLevel: 'debug'})
      // BaaS._config.API_HOST = 'https://viac2-p.eng-vm.can.corp.ifanr.com'
      // BaaS._config.API_HOST_PATTERN = /^https:\/\/[\w-.]+\.ifanr\.com/

      BaaS.auth.thirdPartyAuth()
    </script>
    <script>
      function auth() {
        window.location.href += '&token=mock-token'
      }
    </script>
  </body>
</html>
